import java.awt.*;
import java.awt.event.*;
import java.sql.*;

public
class DBOsoba extends  Frame implements WindowListener, ActionListener
{
	Button buttonExit;
	Button buttonAdd;
	Button buttonSave;
	Button buttonRemove;
	Button buttonFirst;
	Button buttonLast;
	Button buttonNext;
	Button buttonPrevious;
	TextField tfImie;
	TextField tfNazwisko;
	TextField tfAdres;
	TextField tfTelefon;
	TextField tfEmail;
	Label lImie;
	Label lNazwisko;
	Label lAdres;
	Label lTelefon;
	Label lOsoba;
	public DBOsoba()
	{
		super();
		addWindowListener(this);
		setSize(450, 300);
		setTitle("DBOsoba");
		Label lImie = new Label();
		lImie.setBounds(20, 28, 30, 10);
		lImie.setText("Imie");
		add(lImie);

		tfImie = new TextField();
		tfImie.setBounds(20, 40, 150, 20);
		add(tfImie);
		
		Label lNazwisko = new Label();
		lNazwisko.setBounds(190, 28, 70, 10);
		lNazwisko.setText("Nazwisko");
		add(lNazwisko);

		tfNazwisko = new TextField();
		tfNazwisko.setBounds(190, 40, 150, 20);
		add(tfNazwisko);
		
		Label lAdres = new Label();
		lAdres.setBounds(20, 68, 70, 10);
		lAdres.setText("Adres");
		add(lAdres);

		tfAdres = new TextField();
		tfAdres.setBounds(20, 80, 320, 20);
		add(tfAdres);
		
		Label lTelefon = new Label();
		lTelefon.setBounds(20, 108, 50, 10);
		lTelefon.setText("Telefon");
		add(lTelefon);

		tfTelefon = new TextField();
		tfTelefon.setBounds(20, 120, 150, 20);
		add(tfTelefon);
		
		Label lEmail = new Label();
		lEmail.setBounds(190, 108, 70, 10);
		lEmail.setText("Email");
		add(lEmail);

		tfEmail = new TextField();
		tfEmail.setBounds(190, 120, 150, 20);
		add(tfEmail);

		buttonExit = new Button("Exit");
		buttonExit.setBounds(380, 260, 50, 20);
		buttonExit.addActionListener(this);
		add(buttonExit);
		
		buttonAdd = new Button("Add");
		buttonAdd.setBounds(380, 38, 50, 20);
		buttonAdd.addActionListener(this);
		add(buttonAdd);
		
		buttonSave = new Button("Save");
		buttonSave.setBounds(380, 68, 50, 20);
		buttonSave.addActionListener(this);
		add(buttonSave);
		buttonRemove = new Button("Remove");
		buttonRemove.setBounds(380, 98, 50, 20);
		buttonRemove.addActionListener(this);
		add(buttonRemove);

		buttonFirst = new Button("First");
		buttonFirst.setBounds(20, 160, 70, 20);
		buttonFirst.addActionListener(this);
		add(buttonFirst);
		
		buttonPrevious = new Button("Previous");
		buttonPrevious.setBounds(103, 160, 70, 20);
		buttonPrevious.addActionListener(this);
		add(buttonPrevious);

		buttonNext = new Button("Next");
		buttonNext.setBounds(184, 160, 70, 20);
		buttonNext.addActionListener(this);
		add(buttonNext);

		buttonLast = new Button("Last");
		buttonLast.setBounds(269, 160, 70, 20);
		buttonLast.addActionListener(this);
		add(buttonLast);

		setLayout(null);
		setVisible(true);
	}
	public static void main(String args[])
	{
		new DBOsoba();
	}
	public void actionPerformed(ActionEvent e)
	{
	}
	public void exit()
	{
		System.exit(0);
	}
	public void windowClosing(WindowEvent e)
	{
		exit();
	}
	public void windowClosed(WindowEvent e)
	{
	}
	public void windowOpened(WindowEvent e)
	{
	}
	public void windowIconified(WindowEvent e)
	{
	}
	public void windowDeiconified(WindowEvent e)
	{
	}
	public void windowActivated(WindowEvent e)
	{
	}
	public void windowDeactivated(WindowEvent e)
	{
	}
}
